﻿using FluentValidation;

namespace Services.Identity.WebApi.Request.User;

public class GetUserInformationByIdsRequest
{
    public List<string>? Ids { get; set; }
}
public class GetUserInformationByIdsRequestValidator : AbstractValidator<GetUserInformationByIdsRequest>
{
    public GetUserInformationByIdsRequestValidator()
    {
        RuleFor(x => x.Ids).Must(x => x!.Count != 0).WithMessage("获取用户的信息时用户索引不能为空");
    }
}
